package com.dianplus.biz.config.annotation;

import com.dianplus.biz.config.AsyncConfiguration;
import org.springframework.boot.autoconfigure.task.TaskExecutionProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Import;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 在启动类上添加该注解来 -自动开启AsyncConfiguration
 * jiangnan 2019/10/16
 */
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Import(AsyncConfiguration.class)
@EnableConfigurationProperties(TaskExecutionProperties.class)
public @interface EnableAsyncConfiguration {
}
